import {
  ElButton,
  ElForm,
  ElFormItem,
  ElSelect,
  ElOption,
  ElInput,
  ElLink,
  ElMessage,
  ElDivider,
  ElContainer,
  ElHeader,
  ElAside,
  ElMain,
  ElFooter,
  ElRadioGroup,
  ElRadioButton,
  ElMenu,
  ElSubmenu,
  ElMenuItemGroup,
  ElMenuItem,
  ElAvatar,
  ElDropdown,
  ElDropdownMenu,
  ElDropdownItem,
  ElCard,
  ElTable,
  ElTableColumn,
  ElRow,
  ElCol,
  ElAffix,
  ElCarousel,
  ElCarouselItem,
  ElProgress,
  ElInfiniteScroll,
  ElCheckbox,
  ElCheckboxGroup,
  ElInputNumber,
  ElTag,
  ElBadge
} from 'element-plus'
import lang from 'element-plus/lib/locale/lang/zh-cn'
import locale from 'element-plus/lib/locale'
import 'element-plus/lib/theme-chalk/display.css'

export default (app) => {
  locale.use(lang)
  app.use(ElButton)
  app.use(ElForm)
  app.use(ElFormItem)
  app.use(ElSelect)
  app.use(ElOption)
  app.use(ElInput)
  app.use(ElLink)
  app.use(ElMessage)
  app.use(ElDivider)
  app.use(ElContainer)
  app.use(ElHeader)
  app.use(ElAside)
  app.use(ElMain)
  app.use(ElFooter)
  app.use(ElRadioGroup)
  app.use(ElRadioButton)
  app.use(ElMenu)
  app.use(ElSubmenu)
  app.use(ElMenuItemGroup)
  app.use(ElMenuItem)
  app.use(ElAvatar)
  app.use(ElDropdown)
  app.use(ElDropdownMenu)
  app.use(ElDropdownItem)
  app.use(ElCard)
  app.use(ElTable)
  app.use(ElTableColumn)
  app.use(ElRow)
  app.use(ElCol)
  app.use(ElAffix)
  app.use(ElCarousel)
  app.use(ElCarouselItem)
  app.use(ElProgress)
  app.use(ElInfiniteScroll)
  app.use(ElCheckbox)
  app.use(ElCheckboxGroup)
  app.use(ElInputNumber)
  app.use(ElTag)
  app.use(ElBadge)
}
